package com.example.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.math.BigDecimal;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Opt {
    /**
     * 订单支付关系ID
     */
    @Id
    private Integer optid;

    /**
     * 订单ID
     */
    private Integer oid;

    /**
     * 支付类型
     */
    private Integer ptid;

    /**
     * 金额
     */
    private BigDecimal price;

    public Opt(Integer oid, Integer ptid, BigDecimal price) {
        this.oid = oid;
        this.ptid = ptid;
        this.price = price;
    }
}
